import request from '@/router/axios';


//提交和在线人数表
export const commitAndOnline = (data) =>{
  return request({
    url:'/api/beetles-offer/creative/statistics/commit-and-online',
    method:'post',
    data:data
  })
}
//类型和数量表柱状图
export const typeAndNumber = (data) =>{
  return request({
    url:'/api/beetles-offer/creative/statistics/type-and-number',
    method:'post',
    data:data
  })
}

//类型和数量表饼形图
export const typeAndNumberAudit = (data)=>{
  return request({
    url:'/api/beetles-offer/creative/statistics/audit',
    method:'post',
    data:data
  })
}

//类型和数量线型图
export const numberAndRate = (data) =>{
  return request({
    url:'/api/beetles-offer/creative/statistics/number-and-rate',
    method:'post',
    data:data
  })
}

//在线图
export const online = (data)=>{
  return request({
    url:"/api/beetles-offer/creative/statistics/online",
    method:'post',
    data:data
  })
}

//获取提交人
export const submitted = (offerId)=>{
  return request({
    url:'/api/beetles-offer/creative/select/submitted',
    method:'get',
    params:{
      offerId
    }

  })
}
